package com.heima.search.service;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.search.dto.AssociateDto;
import com.heima.model.common.search.pojo.ApUserSearch;
import com.heima.model.common.search.vo.AssociateWordsVo;

import java.io.IOException;
import java.util.List;

public interface HistoryService {
    /**
     * 保存搜索历史
     */
    public void  saveSearchHistory(ApUserSearch apUserSearch);

    ResponseResult<List<ApUserSearch>> load();

    ResponseResult del(String id);

    ResponseResult<List<AssociateWordsVo>> searchAssociate(AssociateDto dto) throws IOException;
}
